package _05_stack.my_implements.exerc;

/**
 * @author: mornd
 * @dateTime: 2023/6/7 - 2:28
 *
 * 编译该文件，并查看字节码文件 javap -c -v ClassTest.class
 * jdk将方法中所涉及的运算都换算成了逆波兰表达式
 */
public class ClassTest {
    public void test() {
        int a = 1;
        int b = 2;
        int c = a + b;
    }

    public void test2() {
        int a = 1;
        int b = 2;
        int c = 3;
        int d = a + b * c;
    }

    public void test3() {
        int a = 1;
        int b = 2;
        int c = 3;
        int d = 4;
        int e = (a + (c - b)) / d;
    }
}
